import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class test1 {
    public static void main(String[] args) {
        String line ="#{id}";
        Pattern pattern=Pattern.compile("#\\{(.+?)\\}",Pattern.CASE_INSENSITIVE);
        Matcher matcher= pattern.matcher(line);
        System.out.println(matcher.matches());
    }
}
